﻿@model MobileSales.Model.Orders.Order

@{
    View.Title = Strings.Orders + " - " + Strings.Delete;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Strings.Orders &nbsp;&raquo;&nbsp; @Strings.Delete</h2>

<h3>@Strings.AreYouSureWhatToDeleteThis</h3>
<fieldset>
    <legend>@Strings.Fields</legend>

    <div class="display-label">@ModelStrings.Client</div>
    <div class="display-field">@Html.ClientIdentity(Model.ClientId)</div>

    <div class="display-label">@ModelStrings.Date</div>
    <div class="display-field">@String.Format("{0:g}", Model.Date)</div>
    
    <div class="display-label">@ModelStrings.OrderStatus</div>
    <div class="display-field">@Model.Status.Name</div>

    @Html.Partial("_OrderItemList", Model.Items)

</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="@Strings.Delete" /> |
    @Html.ActionLink(Strings.BackToList, "Index", null, new { @class = "icon-button prev-icon" })
    </p>
}


